﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LANmine
{
    public partial class HomeForm : Form
    {
        private Language lmLang;

        public HomeForm(Language lmLang)
        {
            /** Save the language object */
            this.lmLang = lmLang;

            /** Dock the window */
            this.Dock = DockStyle.Fill;

            InitializeComponent();
            ApplyLanguage();
        }

        #region Language Specifications
        /**
         * MainForm::ApplyLanguage()
         * ---------------------------
         * Overwrite the text property of all elements in this form with the right ones.
         */
        private void ApplyLanguage()
        {
            /**
             * Header label
             */
            this.lblWelcome.Text = this.lmLang.GetString("home.lblWelcome"); // Label is the same as the nav button
            /**
             * Label welkomsttekst
             */
            this.lblWelcomeText.Text = this.lmLang.GetString("home.lblWelcomeText");

        }
        #endregion
    }
}
